package com.commodity.Service;

import com.commodity.entity.Inventory;
import com.commodity.entity.InventoryData;
import com.commodity.entity.InventorySearchBean;
import com.commodity.utils.PaginateInfo;

import java.util.List;

public interface InventoryService {
    List<Inventory> findAll(InventorySearchBean isb, PaginateInfo pi);

    boolean add(Inventory inventory1);

    int delete(Integer[] intIds);

    Inventory findById(Integer id);

    boolean update(Inventory inventory1);

    List<Inventory> findAllWareHouseId();

    List<Inventory> findByCommodityIds(String[] commodityIdsFromCommodityList,PaginateInfo pi);

    List<Inventory> findByWarehouseId(String warehouseId1,PaginateInfo pi);

    List<InventoryData> findByCommodityId(String commodityId);
}
